package cn.bugDance.infrastructure.persistent.dao;

import cn.bugDance.infrastructure.persistent.po.StrategyAward;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IStrategyAwardDao {
    List<StrategyAward> getStrategyAwardByStrategyId(Long strategyId);

    void updateStrategyAwardCountSurplus(@Param("strategyId") Long strategyId, @Param("awardId") Integer awardId);

    StrategyAward getStrategyAwardByStrategyIdAndAward(@Param("strategyId") Long strategyId, @Param("awardId") Integer awardId);

    void strategyAwardCountSurplusSubtraction(@Param("strategyId") Long strategyId, @Param("awardId") Integer awardId);
}
